package com.controller;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping(value="/other")
public class OtherController {

    private static Logger logger = Logger.getLogger(OtherController.class);

    @RequestMapping(value="/error")
    public String error(HttpServletRequest request, Model model) throws Exception{
        logger.info("error page");
        return "other/404";
    }
}
